package ge.telasi.tasks.ui.user;

import java.io.Serializable;

/**
 * @author dimitri
 */
public class ServerItem implements Serializable {
    private static final long serialVersionUID = 1507290357045967105L;

    static public ServerItem getDefaultServerItem() {
        ServerItem item = new ServerItem();
        item.setHost("192.168.1.222");
        item.setPort(3700);
        item.setName("ძირითადი");
        return item;
    }

    private String name;
    private String host = "localhost";
    private int port = 3700;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    @Override
    public String toString() {
        return name + " (" + host + ":" + port + ")";
    }

}
